home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / gcc-lib / i486-unknown-sco3.2v5.0.0elf / 2.6-95q2 / include / oldstyle / fcntl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-12  |  2.3 KB  |  67 lines

  1. /*
  2.  *   Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
  3.  *        All Rights Reserved.
  4.  *
  5.  *    The information in this file is provided for the exclusive use of
  6.  *    the licensees of The Santa Cruz Operation, Inc.  Such users have the
  7.  *    right to use, modify, and incorporate this code into other products
  8.  *    for purposes authorized by the license agreement provided they include
  9.  *    this notice and the associated copyright notice with any such product.
  10.  *    The information in this file is provided "AS IS" without warranty.
  11.  */
  12.  
  13. /*    Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
  14. /*    Portions Copyright (c) 1979 - 1990 AT&T   */
  15. /*      All Rights Reserved   */
  16.  
  17. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF          */
  18. /*    UNIX System Laboratories, Inc.                          */
  19. /*    The copyright notice above does not evidence any        */
  20. /*    actual or intended publication of such source code.     */
  21.  
  22. #ifndef _FCNTL_H
  23. #ifndef _PARAMS
  24. #if defined(__STDC__) || defined(__cplusplus)
  25. #define _PARAMS(ARGS) ARGS
  26. #else
  27. #define _PARAMS(ARGS) ()
  28. #endif
  29. #endif /* _PARAMS */
  30. #define _FCNTL_H
  31.  
  32. #ident "oldstyle @(#) fcntl.h 20.1 94/12/04 "
  33.  
  34.  
  35. #include <sys/types.h>
  36. #include <sys/fcntl.h>
  37.  
  38. #ifndef S_IRWXU
  39. #define S_IRWXU    00700    /* read, write, execute: owner  */
  40. #define S_IRUSR    00400    /* read permission: owner  */
  41. #define S_IWUSR    00200    /* write permission: owner  */
  42. #define S_IXUSR    00100    /* execute permission: owner  */
  43. #define S_IRWXG    00070    /* read, write, execute: group  */
  44. #define S_IRGRP    00040    /* read permission: group  */
  45. #define S_IWGRP    00020    /* write permission: group  */
  46. #define S_IXGRP    00010    /* execute permission: group  */
  47. #define S_IRWXO    00007    /* read, write, execute: other  */
  48. #define S_IROTH    00004    /* read permission: other  */
  49. #define S_IWOTH    00002    /* write permission: other  */
  50. #define S_IXOTH    00001    /* execute permission: other  */
  51. #define S_ISUID    04000    /* set user id on execution  */
  52. #define S_ISGID    02000    /* set group id on execution  */
  53. #endif
  54.  
  55. #ifndef SEEK_SET
  56. #define SEEK_SET    0    /* Set file pointer to "offset"  */
  57. #define SEEK_CUR    1    /* Set file pointer to current plus "offset"  */
  58. #define SEEK_END    2    /* Set file pointer to EOF plus "offset"  */
  59. #endif
  60.  
  61. extern int    fcntl _PARAMS((int, int, ...));
  62. extern int    open _PARAMS((const char *, int, ...));
  63. extern int    creat _PARAMS((const char *, unsigned short ));
  64.  
  65.  
  66. #endif /* _FCNTL_H */
  67.